


class Router:

    def db_for_read(self, model, **hints):
        # if model._meta.app_label == 'mydb':
        #     return 'mydb'
        return 'slave'

    def db_for_write(self, model, **hints):
        # if model._meta.app_label == 'mydb':
        #     return 'mydb'
        return 'default'